﻿#region imports

using System.Collections.Generic;
using System.Data.Services;
using System.Data.Services.Common;
using Microsoft.Data.Services.Toolkit.QueryModel;

#endregion

namespace Codeplex.ODataTFS.Model.Entities
{
	[DataServiceKey("Path")]
	[ETag("Name")]
	[EntityPropertyMapping("Path", SyndicationItemProperty.Title, SyndicationTextContentKind.Plaintext, true)]
	[EntityPropertyMapping("Name", SyndicationItemProperty.Summary, SyndicationTextContentKind.Plaintext, true)]
	public class AreaPath
	{
		public string Path { get; set; }

		public string Name { get; set; }

		[ForeignProperty]
		public IEnumerable<AreaPath> SubAreas { get; set; }
	}
}
